//-----------------------------------------------------------------
// Includes
//-----------------------------------------------------------------
#include <Viewer/Sphere.hpp>
#include <GL/glut.h>

namespace Viewer
{
	///////////////////////////////////////////////////////////////////
	/// Constructeur
	///////////////////////////////////////////////////////////////////
	Sphere::Sphere( float x, float y, float z, float r, float g, float b, float size): 
	Node(x,y,z,r,g,b),sphereSize(size)
	{
	}
	
	///////////////////////////////////////////////////////////////////
	/// Destructeur
	///////////////////////////////////////////////////////////////////	
	Sphere::~Sphere()
	{
		
	}
	
	Sphere::Sphere( const Sphere & copy ):
	Node( copy ),sphereSize(copy.sphereSize)
	{

	}

	Sphere & Sphere::operator=( const Sphere & copy )
	{	
			//centre = copy.centre;
		sphereSize = copy.sphereSize;
		return *this;
	}

	void Sphere::Draw()
	{			
		material.Draw();	
		glutSolidSphere(sphereSize,32,32);
	}

	Node * Sphere::CreateCopy()
	{
		return new Sphere( *this );
	}

}
